package net.onmotion.gps;

import net.onmotion.Location;

/**
 *
 * @author sestevao
 */
public class GpsFake extends Gps {
    
  private Location fakeLocation;  
  private static GpsFake instance;
    /** Creates a new instance of GpsFake */
    private GpsFake() {
      fakeLocation = Location.parseGPGGA("123519,4807.038,N,01131.000,E,1,08,0.9,545.4,M,46.9,M,,*47,");
    }
    
    static public GpsFake getInstance(){
      if (instance == null) {
        instance = new GpsFake();
      }
      return instance;
    }

    public Location getLocation() {
        return fakeLocation;
    }

    public boolean isConnected() {
        return true;
    }

    public void start() {
    }

    public void stop() {
    }
    
    public void setPosition(String latitude, String longitude, String alt) {
        
    }
    
}
